let t = require;
let  e = module
let  o =  e.exports;
 o.default =  e.exports;

                'use strict';
                console.log("start"),
                    Object.defineProperty(o, '__esModule', {
                        value: !0
                    });
                var n = (function() {
                    function t(e) {
                        (this.BUFFER_EXT_SIZE = 0),
                        (this.EOF_byte = -1),
                        (this.EOF_code_point = -1),
                        this._setArrayBuffer(e || new ArrayBuffer(this.BUFFER_EXT_SIZE)),
                            (this.endian = t.BIG_ENDIAN);
                    }
                    return (
                        (t.prototype._setArrayBuffer = function(t) {
                            (this.write_position = t.byteLength),
                            (this.data = new DataView(t)),
                            (this._position = 0);
                        }),
                        (t.prototype.setArrayBuffer = function(t) {
                            this._setArrayBuffer(t);
                        }),
                        Object.defineProperty(t.prototype, 'buffer', {
                            get: function get() {
                                return this.data.buffer;
                            },
                            set: function set(t) {
                                this.data = new DataView(t);
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(t.prototype, 'dataView', {
                            get: function get() {
                                return this.data;
                            },
                            set: function set(t) {
                                (this.data = t), (this.write_position = t.byteLength);
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(t.prototype, 'bufferOffset', {
                            get: function get() {
                                return this.data.byteOffset;
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(t.prototype, 'position', {
                            get: function get() {
                                return this._position;
                            },
                            set: function set(t) {
                                (this._position = t),
                                (this.write_position =
                                    t > this.write_position ? t : this.write_position);
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(t.prototype, 'length', {
                            get: function get() {
                                return this.write_position;
                            },
                            set: function set(t) {
                                this.write_position = t;
                                var e = new Uint8Array(new ArrayBuffer(t)),
                                    o = this.data.buffer.byteLength;
                                o > t && (this._position = t);
                                var n = Math.min(o, t);
                                e.set(new Uint8Array(this.data.buffer, 0, n)),
                                    (this.buffer = e.buffer);
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(t.prototype, 'bytesAvailable', {
                            get: function get() {
                                return this.data.byteLength - this._position;
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        (t.prototype.clear = function() {
                            this._setArrayBuffer(new ArrayBuffer(this.BUFFER_EXT_SIZE));
                        }),
                        (t.prototype.readBoolean = function() {
                            return this.validate(t.SIZE_OF_BOOLEAN) ?
                                0 != this.data.getUint8(this.position++) :
                                null;
                        }),
                        (t.prototype.readByte = function() {
                            return this.validate(t.SIZE_OF_INT8) ?
                                this.data.getInt8(this.position++) :
                                null;
                        }),
                        (t.prototype.readBytes = function(e, o, n) {
                            if ((void 0 === o && (o = 0), void 0 === n && (n = 0), 0 == n))
                                n = this.bytesAvailable;
                            else if (!this.validate(n)) return null;
                            e ? e.validateBuffer(o + n) : (e = new t(new ArrayBuffer(o + n)));
                            for (var i = 0; i < n; i++) {
                                e.data.setUint8(i + o, this.data.getUint8(this.position++));
                            }
                        }),
                        (t.prototype.readDouble = function() {
                            if (!this.validate(t.SIZE_OF_FLOAT64)) return null;
                            var e = this.data.getFloat64(
                                this.position,
                                this.endian == t.LITTLE_ENDIAN
                            );
                            return (this.position += t.SIZE_OF_FLOAT64), e;
                        }),
                        (t.prototype.readFloat = function() {
                            if (!this.validate(t.SIZE_OF_FLOAT32)) return null;
                            var e = this.data.getFloat32(
                                this.position,
                                this.endian == t.LITTLE_ENDIAN
                            );
                            return (this.position += t.SIZE_OF_FLOAT32), e;
                        }),
                        (t.prototype.readInt = function() {
                            if (!this.validate(t.SIZE_OF_INT32)) return null;
                            var e = this.data.getInt32(
                                this.position,
                                this.endian == t.LITTLE_ENDIAN
                            );
                            return (this.position += t.SIZE_OF_INT32), e;
                        }),
                        (t.prototype.readShort = function() {
                            if (!this.validate(t.SIZE_OF_INT16)) return null;
                            var e = this.data.getInt16(
                                this.position,
                                this.endian == t.LITTLE_ENDIAN
                            );
                            return (this.position += t.SIZE_OF_INT16), e;
                        }),
                        (t.prototype.readUnsignedByte = function() {
                            return this.validate(t.SIZE_OF_UINT8) ?
                                this.data.getUint8(this.position++) :
                                null;
                        }),
                        (t.prototype.readUnsignedInt = function() {
                            if (!this.validate(t.SIZE_OF_UINT32)) return null;
                            var e = this.data.getUint32(
                                this.position,
                                this.endian == t.LITTLE_ENDIAN
                            );
                            return (this.position += t.SIZE_OF_UINT32), e;
                        }),
                        (t.prototype.readUnsignedShort = function() {
                            if (!this.validate(t.SIZE_OF_UINT16)) return null;
                            var e = this.data.getUint16(
                                this.position,
                                this.endian == t.LITTLE_ENDIAN
                            );
                            return (this.position += t.SIZE_OF_UINT16), e;
                        }),
                        (t.prototype.readUTF = function() {
                            if (!this.validate(t.SIZE_OF_UINT16)) return null;
                            var e = this.data.getUint16(
                                this.position,
                                this.endian == t.LITTLE_ENDIAN
                            );
                            return (
                                (this.position += t.SIZE_OF_UINT16),
                                e > 0 ? this.readUTFBytes(e) : ''
                            );
                        }),
                        (t.prototype.readUTFBytes = function(t) {
                            if (!this.validate(t)) return null;
                            var e = new Uint8Array(
                                this.buffer,
                                this.bufferOffset + this.position,
                                t
                            );
                            return (this.position += t), this.decodeUTF8(e);
                        }),
                        (t.prototype.writeBoolean = function(e) {
                            this.validateBuffer(t.SIZE_OF_BOOLEAN),
                                this.data.setUint8(this.position++, e ? 1 : 0);
                        }),
                        (t.prototype.writeByte = function(e) {
                            this.validateBuffer(t.SIZE_OF_INT8),
                                this.data.setInt8(this.position++, e);
                        }),
                        (t.prototype.writeBytes = function(t, e, o) {
                            var n;
                            if (
                                (void 0 === e && (e = 0),
                                    void 0 === o && (o = 0),
                                    !(e < 0) &&
                                    !(o < 0) &&
                                    (n = 0 == o ? t.length - e : Math.min(t.length - e, o)) > 0)
                            ) {
                                this.validateBuffer(n);
                                for (var i = new DataView(t.buffer), r = n; r > 4; r -= 4) {
                                    this.data.setUint32(this._position, i.getUint32(e)),
                                        (this.position += 4),
                                        (e += 4);
                                }
                                for (; r > 0; r--) {
                                    this.data.setUint8(this.position++, i.getUint8(e++));
                                }
                            }
                        }),
                        (t.prototype.writeDouble = function(e) {
                            this.validateBuffer(t.SIZE_OF_FLOAT64),
                                this.data.setFloat64(
                                    this.position,
                                    e,
                                    this.endian == t.LITTLE_ENDIAN
                                ),
                                (this.position += t.SIZE_OF_FLOAT64);
                        }),
                        (t.prototype.writeFloat = function(e) {
                            this.validateBuffer(t.SIZE_OF_FLOAT32),
                                this.data.setFloat32(
                                    this.position,
                                    e,
                                    this.endian == t.LITTLE_ENDIAN
                                ),
                                (this.position += t.SIZE_OF_FLOAT32);
                        }),
                        (t.prototype.writeInt = function(e) {
                            this.validateBuffer(t.SIZE_OF_INT32),
                                this.data.setInt32(
                                    this.position,
                                    e,
                                    this.endian == t.LITTLE_ENDIAN
                                ),
                                (this.position += t.SIZE_OF_INT32);
                        }),
                        (t.prototype.writeShort = function(e) {
                            this.validateBuffer(t.SIZE_OF_INT16),
                                this.data.setInt16(
                                    this.position,
                                    e,
                                    this.endian == t.LITTLE_ENDIAN
                                ),
                                (this.position += t.SIZE_OF_INT16);
                        }),
                        (t.prototype.writeUnsignedIntpublic = function(e) {
                            this.validateBuffer(t.SIZE_OF_UINT32),
                                this.data.setUint32(
                                    this.position,
                                    e,
                                    this.endian == t.LITTLE_ENDIAN
                                ),
                                (this.position += t.SIZE_OF_UINT32);
                        }),
                        (t.prototype.writeUnsignedShort = function(e) {
                            this.validateBuffer(t.SIZE_OF_UINT16),
                                this.data.setUint16(
                                    this.position,
                                    e,
                                    this.endian == t.LITTLE_ENDIAN
                                ),
                                (this.position += t.SIZE_OF_UINT16);
                        }),
                        (t.prototype.writeUnsignedInt = function(e) {
                            this.validateBuffer(t.SIZE_OF_UINT32),
                                this.data.setUint32(
                                    this.position,
                                    e,
                                    this.endian == t.LITTLE_ENDIAN
                                ),
                                (this.position += t.SIZE_OF_UINT32);
                        }),
                        (t.prototype.writeUTF = function(e) {
                            var o = this.encodeUTF8(e),
                                n = o.length;
                            this.validateBuffer(t.SIZE_OF_UINT16 + n),
                                this.data.setUint16(
                                    this.position,
                                    n,
                                    this.endian == t.LITTLE_ENDIAN
                                ),
                                (this.position += t.SIZE_OF_UINT16),
                                this._writeUint8Array(o, !1);
                        }),
                        (t.prototype.writeUTFBytes = function(t) {
                            this._writeUint8Array(this.encodeUTF8(t));
                        }),
                        (t.prototype.toString = function() {
                            return (
                                '[ByteArray] length:' +
                                this.length +
                                ', bytesAvailable:' +
                                this.bytesAvailable
                            );
                        }),
                        (t.prototype._writeUint8Array = function(t, e) {
                            void 0 === e && (e = !0),
                                e && this.validateBuffer(this.position + t.length);
                            for (var o = 0; o < t.length; o++) {
                                this.data.setUint8(this.position++, t[o]);
                            }
                        }),
                        (t.prototype.validate = function(t) {
                            if (
                                this.data.byteLength > 0 &&
                                this._position + t <= this.data.byteLength
                            )
                                return !0;
                        }),
                        (t.prototype.validateBuffer = function(t, e) {
                            if (
                                (void 0 === e && (e = !1),
                                    (this.write_position =
                                        t > this.write_position ? t : this.write_position),
                                    (t += this._position),
                                    this.data.byteLength < t || e)
                            ) {
                                var o = new Uint8Array(
                                        new ArrayBuffer(t + this.BUFFER_EXT_SIZE)
                                    ),
                                    n = Math.min(
                                        this.data.buffer.byteLength,
                                        t + this.BUFFER_EXT_SIZE
                                    );
                                o.set(new Uint8Array(this.data.buffer, 0, n)),
                                    (this.buffer = o.buffer);
                            }
                        }),
                        (t.prototype.encodeUTF8 = function(t) {
                            for (
                                var e = 0, o = this.stringToCodePoints(t), n = []; o.length > e;

                            ) {
                                var i = o[e++];
                                if (this.inRange(i, 55296, 57343)) this.encoderError(i);
                                else if (this.inRange(i, 0, 127)) n.push(i);
                                else {
                                    var r = void 0,
                                        a = void 0;
                                    for (
                                        this.inRange(i, 128, 2047) ?
                                        ((r = 1), (a = 192)) :
                                        this.inRange(i, 2048, 65535) ?
                                        ((r = 2), (a = 224)) :
                                        this.inRange(i, 65536, 1114111) && ((r = 3), (a = 240)),
                                        n.push(this.div(i, Math.pow(64, r)) + a); r > 0;

                                    ) {
                                        var s = this.div(i, Math.pow(64, r - 1));
                                        n.push(128 + (s % 64)), (r -= 1);
                                    }
                                }
                            }
                            return new Uint8Array(n);
                        }),
                        (t.prototype.decodeUTF8 = function(t) {
                            for (
                                var e, o = 0, n = '', i = 0, r = 0, a = 0, s = 0; t.length > o;

                            ) {
                                var c = t[o++];
                                if (c == this.EOF_byte)
                                    e = 0 != r ? this.decoderError(!1) : this.EOF_code_point;
                                else if (0 == r)
                                    this.inRange(c, 0, 127) ?
                                    (e = c) :
                                    (this.inRange(c, 194, 223) ?
                                        ((r = 1), (s = 128), (i = c - 192)) :
                                        this.inRange(c, 224, 239) ?
                                        ((r = 2), (s = 2048), (i = c - 224)) :
                                        this.inRange(c, 240, 244) ?
                                        ((r = 3), (s = 65536), (i = c - 240)) :
                                        this.decoderError(!1),
                                        (i *= Math.pow(64, r)),
                                        (e = null));
                                else if (this.inRange(c, 128, 191)) {
                                    if (
                                        ((a += 1), (i += (c - 128) * Math.pow(64, r - a)), a !== r)
                                    )
                                        e = null;
                                    else {
                                        var l = i,
                                            u = s;
                                        (i = 0),
                                        (r = 0),
                                        (a = 0),
                                        (s = 0),
                                        (e =
                                            this.inRange(l, u, 1114111) &&
                                            !this.inRange(l, 55296, 57343) ?
                                            l :
                                            this.decoderError(!1, c));
                                    }
                                } else
                                    (i = 0),
                                    (r = 0),
                                    (a = 0),
                                    (s = 0),
                                    o--,
                                    (e = this.decoderError(!1, c));
                                null !== e &&
                                    e !== this.EOF_code_point &&
                                    (e <= 65535 ?
                                        e > 0 && (n += String.fromCharCode(e)) :
                                        ((e -= 65536),
                                            (n += String.fromCharCode(55296 + ((e >> 10) & 1023))),
                                            (n += String.fromCharCode(56320 + (1023 & e)))));
                            }
                            return n;
                        }),
                        (t.prototype.encoderError = function() {}),
                        (t.prototype.decoderError = function(t, e) {
                            return e || 65533;
                        }),
                        (t.prototype.inRange = function(t, e, o) {
                            return e <= t && t <= o;
                        }),
                        (t.prototype.div = function(t, e) {
                            return Math.floor(t / e);
                        }),
                        (t.prototype.stringToCodePoints = function(t) {
                            for (var e = [], o = 0, n = t.length; o < t.length;) {
                                var i = t.charCodeAt(o);
                                if (this.inRange(i, 55296, 57343)) {
                                    if (this.inRange(i, 56320, 57343)) e.push(65533);
                                    else if (o == n - 1) e.push(65533);
                                    else {
                                        var r = t.charCodeAt(o + 1);
                                        if (this.inRange(r, 56320, 57343)) {
                                            var a = 1023 & i,
                                                s = 1023 & r;
                                            (o += 1), e.push(65536 + (a << 10) + s);
                                        } else e.push(65533);
                                    }
                                } else e.push(i);
                                o += 1;
                            }
                            return e;
                        }),
                        (t.LITTLE_ENDIAN = 'littleEndian'),
                        (t.BIG_ENDIAN = 'bigEndian'),
                        (t.SIZE_OF_BOOLEAN = 1),
                        (t.SIZE_OF_INT8 = 1),
                        (t.SIZE_OF_INT16 = 2),
                        (t.SIZE_OF_INT32 = 4),
                        (t.SIZE_OF_UINT8 = 1),
                        (t.SIZE_OF_UINT16 = 2),
                        (t.SIZE_OF_UINT32 = 4),
                        (t.SIZE_OF_FLOAT32 = 4),
                        (t.SIZE_OF_FLOAT64 = 8),
                        t
                    );
                })();
                (o.default = n), console.log("end");
            module.exports =  e.exports;